<?php
/**
 * Created by PhpStorm.
 * User: zhj
 * Date: 2019/3/29
 * Time: 17:53
 */

namespace app\factory;

class Index
{
    public static function index()
    {
        Object::getAudiClass()->setCar('我是奧迪');
        Object::getAudiClass()->getCar();
        Object::getBMWClass()->setCar('我是宝马');
        Object::getBMWClass()->getCar();
        Object::getRandRoverClass()->setCar('我是路虎');
        Object::getBMWClass()->getCar();
    }
}